package cn.rongdao.jrkabao.model.main.vip;


import com.mifengkong.frtools.http.request.HttpFunction;

import cn.rongdao.jrkabao.bean.main.vip.MemberBean;
import cn.rongdao.jrkabao.model.api.BaseKaMaoModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jack on 2018/1/29
 */

public class MemberModel extends BaseKaMaoModel {

    public static MemberModel getInstance() {
        return getPresent(MemberModel.class);
    }

    public void execute(Observer<MemberBean> observer) {
        Observable<MemberBean> observable = mServletApi.getVipConfig(mParams).map(new HttpFunction<MemberBean>());
        toSubscribe(observable, observer);
    }
}